<template>
  <div class="son">
    <h3>这是孙组件</h3>

    <div class="dialog">
      <!-- "Dialog" 标签应该首字母大写,避免和系统自带的混淆 -->
      <Dialog title="来自孙组件的问候" msg="只是显示一些测试的消息,看完后点击[关闭]按钮即可."></Dialog>
    </div>
  </div>
</template>

<script>
import Dialog from './Dialog'

export default {
  components: {
    Dialog
  },
}
</script>

<style scoped>
  .son {
    background-color: burlywood;
    padding: 8px;
  }

  .dialog {
    margin-left: 10px;
  }

</style>